@echo off
setlocal

for /f "tokens=2,3,4 delims=/ " %%f in ("%date%") do (set year=%%h& set month=%%f& set date=%%g)
for /f "tokens=1,2,3 delims=:. " %%f in ("%time%") do (set hour=%%f& set minute=%%g& set second=%%h)
if %hour% LSS 10 set hour=0%hour%
set Now=%year%%month%%date%_%hour%%minute%%second%

set SSDIR=\\meteor\development_vss$
set VSS="C:\Program Files\Microsoft Visual SourceSafe\ss.exe"
set VSSLogin=np980
set VSSPassword=

set MAKE="C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\BIN\nmake.exe"
set LogFile=AutoBuild_%Now%.Log

set Project="$/PHSRAG/Applications/WebApplications/Insight_Dev/Database"
set WorkFolder="D:\Database"

if not exist %WorkFolder% mkdir %WorkFolder%
%VSS% Get %Project% -R -I- -Y%VSSLogin%,%VSSPassword% -GL%WorkFolder%

endlocal
